package com.itljm.cxrMarket.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itljm.cxrMarket.common.Result;
import com.itljm.cxrMarket.entity.Articles;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ArticlesService extends IService<Articles> {
    List<Articles> selectArticlesByPage(Page<Articles> page, QueryWrapper<Articles> wrapper);
    // 根据id查询文章信息
    Articles selectArticleById(Integer id);
    // 新增或更新文章
    boolean saveOrUpdateArticle(Articles article);
    // 删除文章
    boolean removeArticleById(Integer id);
}
